//
//  QXUser.h
//  QXBlog
//
//  Created by QinXin on 15/7/5.
//  Copyright © 2015年 labi3285_Lab. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface QXUser : NSObject <NSCoding>

/// 用户UID
@property (nonatomic, copy) NSString *id;
/// 字符串型的用户UID
@property (nonatomic, copy) NSString *idstr;
/// 用户昵称
@property (nonatomic, copy) NSString *screen_name;
/// 友好显示名称
@property (nonatomic, copy) NSString *name;
/// 用户所在省级ID
@property (nonatomic, assign) int province;
/// 用户所在城市ID
@property (nonatomic, assign) int city;
/// 用户所在区（这个打开会报错）
//@property (nonatomic, copy) NSString *class;
/// 用户所在地
@property (nonatomic, copy) NSString *location;
/// 个人描述
@property (nonatomic, copy) NSString *desciption;
/// 微博地址
@property (nonatomic, copy) NSString *url;
/// 用户头像地址（中图），50×50像素
@property (nonatomic, copy) NSString *profile_image_url;
/// 用户的微博统一URL地址
@property (nonatomic, copy) NSString *profile_url;
/// 用户的个性化域名
@property (nonatomic, copy) NSString *domain;
/// 用户微号
@property (nonatomic, copy) NSString *weihao;
/// 性别，m：男、f：女、n：未知
@property (nonatomic, copy) NSString *gender;
/// 粉丝数
@property (nonatomic, assign) int followers_count;
/// 关注数
@property (nonatomic, assign) int friends_count;
/// 微博数
@property (nonatomic, assign) int statuses_count;
/// 收藏数
@property (nonatomic, assign) int favourites_count;
/// 用户注册时间
@property (nonatomic, copy) NSString *created_at;
/// 暂时不支持
@property (nonatomic, assign) BOOL following;
/// 是否允许所有人给我发私信，true：是，false：否
@property (nonatomic, assign) BOOL allow_all_act_msg;
/// 是否允许标识用户的地理位置，true：是，false：否
@property (nonatomic, assign) BOOL geo_enabled;
/// 是否是微博认证用户，即加V用户，true：是，false：否
@property (nonatomic, assign) BOOL verified;
/// 用户备注信息，只有在查询用户关系时才返回此字段
@property (nonatomic, copy) NSString *remark;
/// 用户的最近一条微博
@property (nonatomic, strong) id status;
/// 是否允许所有人对我的微博进行评论，true：是，false：否
@property (nonatomic, assign) BOOL allow_all_comment;
/// 用户头像地址（大图），180×180像素
@property (nonatomic, copy) NSString *avatar_large;
/// 用户头像地址（高清），高清头像原图
@property (nonatomic, copy) NSString *avatar_hd;

/// 认证原因
@property (nonatomic, copy) NSString *verified_reason;
@property (nonatomic, copy) NSString *verified_reason_url;
@property (nonatomic, copy) NSString *verified_source;
@property (nonatomic, copy) NSString *verified_source_url;
@property (nonatomic, copy) NSString *verified_trade;
@property (nonatomic, copy) NSString *verified_type;


/// 该用户是否关注当前登录用户，true：是，false：否
@property (nonatomic, assign) BOOL follow_me;
/// 用户的在线状态，0：不在线、1：在线
@property (nonatomic, assign) int online_status;
/// 用户的互粉数
@property (nonatomic, assign) int bi_followers_count;
/// 用户当前的语言版本，zh-cn：简体中文，zh-tw：繁体中文，en：英语
@property (nonatomic, copy) NSString *lang;

/// 未知
@property (nonatomic, assign) int mbtype;
@property (nonatomic, assign) int ptype;
@property (nonatomic, copy) NSString *remind_in;
@property (nonatomic, assign) int star;
@property (nonatomic, copy) NSString *uid;
@property (nonatomic, assign) int urank;
@property (nonatomic, assign) int user_ability;
@property (nonatomic, assign) int block_app;
@property (nonatomic, assign) int block_word;
@property (nonatomic, assign) int credit_score;

/// 账户单例
+ (instancetype)sharedUser;

/// 解档数据
+ (instancetype)unAchivedSharedData;
/// 归档数据
- (void)achiveToSharedPath;

/// 快速构造方法
+ (instancetype)userWithDic: (NSDictionary *)dic;
/// 构造方法
- (instancetype)initWithDic: (NSDictionary *)dic;

@end
